﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DealerJudge.Core;


namespace DealerJudge.Data
{
    public class SqlHelperFactory
    {
         public static ISqlHelper GetSqlHelper()
        {
            ISqlHelper sqlHelper;
            IConfigManager configMgr = new ConfigManager();
            ILogger logger = LoggerFactory.GetLogger();
            IConnectionProvider connectionProvider = new ConnectionProvider(logger, configMgr);
            sqlHelper = new SqlHelper(logger, connectionProvider);
            return sqlHelper;
        }
    }
}
